package com.sdp.right.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2023-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_page")
public class SysPage extends Model<SysPage> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    @TableField("key_id")
    private String keyId;

    /**
     * 系统编号
     */
    @TableField("system_no")
    private String systemNo;

    /**
     * 页面名称
     */
    @TableField("page_name")
    private String pageName;

    /**
     * 画布数据
     */
    @TableField("echo_data")
    private String echoData;

    /**
     * 页面原始数据
     */
    @TableField("page_data")
    private String pageData;

    /**
     * 页面网页数据
     */
    @TableField("page_html")
    private String pageHtml;

    
    @TableField("page_dict")
    private String pageDict;
    
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
